package homeworke.question17;

/**
 * Author：毕龙
 * Date: 2024/4/18 19:24
 */
public class Soldier extends Role{
    private int hurt;//伤害值

    @Override
    public int attack() {
        return hurt;
    }

    public int getHurt() {
        return hurt;
    }

    public void setHurt(int hurt) {
        this.hurt = hurt;
    }
}
